<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>首页</title>
<style type="text/css">
 p{font-size:20px;margin:0px;}
 #container{width:500px}
 #header{background-color:#99bbbb;text-align:right;margin:0; padding:0;}
 #content{background-color:#EEEEEE;text-align:center;height:400px;margin:0; padding:0;}
</style>



</head>
<body>
<div id="container">

<div id="header">
<a margin="0px" class="login_in_a" href="/homework5/login"><span id="loginbtn" style="display:inline">登录</span></a><span id="username" >${userName}</span><a margin="0px" class="login_out_a"  margin-left="1px" href="/homework5/login_out"><span id="quitbtn" style="display:none">退出</span></a>
</div>


<div id="content">

<P id="pcontent">欢迎进入首页</P>
<script type="text/javascript">
var s=document.getElementById("username").innerHTML;
if(s.length>0){
	document.getElementById("quitbtn").style.display='inline';
	document.getElementById("loginbtn").style.display='none';
	
}
</script>
</div>


</div>
</body>
</html>